package com.olap.starter.core.base;

import org.springframework.stereotype.Component;

/**
 * @author WBG
 * @date 2021/10/7 9:44
 * @describe 分页注解控制
 */
//@Aspect
@Component
public class PageInvocationAdvice {

    /**
     *
     * @param
     * @return
     */
   /* @Before("@annotation(annotation.core.com.olap.starter.Page)")
    public void before(){
        setBasePage();
    }

    *//**
     * 设置请求分页数据
     *//*
    protected void setBasePage()
    {
        BasePage basePage = PageRequest.getBasePage();
        Integer pageNum = basePage.getPageNum();
        Integer pageSize = basePage.getPageSize();
        String orderBy = SqlUtil.escapeOrderBySql(basePage.getOrderBy());
        PageHelper.startPage(pageNum, pageSize, orderBy);
    }*/
}
